The king moved the capital to thonburi , a city on the west bank of the Chao Phraya River, closer to the sea. The kingdom was still in chaos as different clans struggled for power. King Taksin conquered the warring clans and reunited the kingdom while, at the same time, accelerating redevelopment of the economy and giving the people moral support.