According to a story recorded by Maciej Stryjkowski, Duke Daumantas (later confused with historical Daumantas of Pskov), son of Vidas from the legendary Palemonid dynasty, built a castle near Videniškiai.