Shivaji then had himself crowned King of the Marathas and , to pay his soldiers , plundered the country all the way east to Madras .
Shivaji was never crowned king and spent years rebuilding the country .