Komenda (; ) is a village in the Upper Carniola region of Slovenia. It is the seat of the Municipality of Komenda. It includes the formerly independent settlement of Kaplja Vas (, ). Name Komenda was first mentioned in written sources in 1147–54 as de sancto Petro (and as hospitale Sancti Petri in 1296, in der pharren von Sand Peter in 1322, and comendator ad S. Petrum in 1446). The name of the village is identical to the Slovene common noun komenda 'commandry', referring to a property and residence owned by the Knights Hospitaller from 1223 to 1872. The noun komenda is borrowed (probably via German Kommende) from Medieval Latin commenda 'entrusted property'. In the past the German name was Commenda. Mass grave Komenda is the site of a mass grave from the period immediately after the Second World War. The Svešek Alder Mass Grave () is located at the edge of the Svešek Alder Woods () along a forest road northwest of Žeje pri Komendi. It contains the remains of 10 to 15 prisoners from Kamnik murdered in May and June 1945. Their nationalities and whether they were soldiers or civilians is unknown. Church Above the settlement is a complex with a castle, the parish church dedicated to Saint Peter, a parsonage, stables, and a cemetery. A church in Komenda was first referred to in documents dating to 1147. In 1726 the old church was pulled down to make way for the new building. The current one was built in the Baroque style and completed in 1729. It was based on plans by the architect Gregor Maček Jr. The interior and the surroundings were redesigned in the first half of the 20th century based on plans by the architect Jože Plečnik. Cultural heritage In addition to Saint Peter's Church, several other structures in Komenda have protected cultural monument status: The commandery of the Knights Hospitaller, also known as the Šmid Manor (), is located immediately northwest of Saint Peter's Church. It is a two-story structure with four wings and an irregular interior courtyard. Its foundations date to the 13th century, and it was renovated in 1872 and again in 1909. The Partisans burned it in 1944, setting a fire in each room, which destroyed all of the furnishings and badly damaged the frescoes and Gothic stonework. The Glavar House () is located at Glavar Street () no. 77. It