The Church of St. Sophia, with its medieval architecture and frescoes, is one of the most important monuments in Macedonia. It is believed to have been built in the 9th century, the present church is a reconstruction of the 11th century, but the courtyard was built later, in the 14th century.