LTLietuvos valstybę XIII a. pirmoje pusėje suvienijo Mindaugas. 1251 m. Lietuva apsikrikštijo, o 1253 m. tapo karalyste. Suvienijus valstybę, atsirado palankios sąlygos mūro pastatų statybai, nes centralizuotos valstybės valdovai savo rankose galėjo sukaupti didesnius materialinius išteklius, suorganizuoti statyboms žmones. Po tragiškos Mindaugo žūties Lietuvos valstybė nesunyko, palaipsniui tvirtėjo, nors ir nuolat gindamasi nuo kaimyninių šalių antpuolių. Lietuvos didžiųjų kunigaikščių Vytenio, Gedimino bei Gediminaičių dinastijos atstovų valdymo metais šalies gynybą galėjo užtikrinti pilys. Ypač aktualu buvo statyti mūrines pilis. Daugiausia jų buvo tarp Vilniaus, Kauno, Gardino, Naugarduko ir Krėvos. Pilių architektūra turėjo atitikti naujausią to meto karybos techniką. Su krikščionybės atėjimu imta statyti ir sakralinius pastatus, nors pastarųjų statyba dėl susiklosčiusių istorinių sąlygų vyko lėčiau. XIII-XIV amžiai - tai mūsų profesionaliosios architektūros pradžia. Deja, šiandien mes turime nedaug duomenų apie to meto architektūrą, apie tada Lietuvą pasiekusius Vakarų Europos bei Bizantijos statybos tradicijų atgarsius. Didžioji dalis to meto pastatų sunyko, išliko nebent kai kurių pilių griuvėsiai. Ankstyviausias mūro pilių tipas Lietuvoje buvo aptvarinis arba kastelinis. Rytinėje Lietuvos dalyje XIII a. pabaigoje-XIV a. pirmoje pusėje pastatytos Krėvos, Lydos bei Medininkų pilys, tobulinta Naugarduko pilis.
ENThe earliest type of masonry castles in Lithuania is the enclosure castle, or the castella. At the end of the 13th and the first half of the 14th centuries there were built castles of the above mentioned type in the Eastern part of Lithuania - Medininkai Castle, the first Castle of Kaunas, Trakai Castle. These castles were plain ones. Enclosure type (or castella) castles came to Lithuania from antiquity through Crusaders' and Sword- bearers' Orders who took the type from Syria and Palestine during the Crusades. The article presents the idea that Lithuanian plain castles of quadrangular plan, such as Medininkai Castle, Trakai Peninsular Castle, bear some analogy to Byzantine castles as well as to the campus built by the Roman legionaries. As for the volumetric-spatial arrangement of enclosure castles of Lithuania, the walls of the castles still predominate over the towers. The article states that the shell structure of a masonry wall of Lithuanian castles of 13th-14th centuries can be considered to be the modification of the masonry technique of the Ancient Rome. Such technique was called opus incertum.The assumption is made that castles in Vilnius and other places in Lithuania were built in the 13th-14th centuries not only to meet the needs of defence. These masonry buildings are said to have been at the same time the object of prestige of the Grand Duke of Lithuania as well as that of the State. Like monarchs in other countries, the Grand Duke of Lithuania invited skilled building specialists. The appeal of Gediminas, the Grand Duke of Lithuania, to artisans in the Western countries is provided as an example. In his appeal Gediminas invites them to Lithuania. In the second half of the 14th century and at the beginning of the 15th century masonry castles of Lithuania were modernized. Greater attention was paid to the castles built in highlands, on hills. The prototype of the latter castles could be the "mountain type" castle formed during the Crusades. Such castles, built in the Grand Principality of Lithuania, as Vilnius Upper Castle, Gardinas Castle and Naugardukas Castle, could be attached to this type.