Nepal is a small landlocked himalaya country which has different history. The modern Nepal is formed by the King Prithvinarayan Shah. He started campaign of unification of Nepal from nuwakot, makawanpur and west part o nepal. And then he attacks the kathmandu valley.In that time In kathmandu valley there are three kingdom that are kritipur, bhaktapur and patan. Before Shah Kingdom, Nepal has come with different eras of different kingdoms.
For more details watch this video:
Thank you.