 Sometime before 1321, Grand Duke Gediminas transferred the capital of Lithuania from Kernavė to Trakai (today's Senieji Trakai) and erected his brick castle.In 1337 it became a seat of the newly established Duchy of Trakai.Gediminas' son Kęstutis erected a new castle in New Trakai (today's Trakai).