 The ruins of the castle were gifted to Benedictine monks by Vytautas in 1405.It is supposed that the present monastery building dating from the 15th century incorporates the remains of the Gediminas' castle.The "Trakai" name, derived from - ""the glade"", suggests that the castle was built in a hollow area after deforestation.