The rajas of mahajanapadas build forts due to the following reasons: For protection purposes as people were afraid of attacks from other kings and needed protection. To show wealth and power – Rulers wanted to show their wealth and power by building large, tall and impressive walls around their cities.