You can collect coins by
  1. Completing levels
  2. Reaching a new Village Rank
  3. Spinning the Wheel of Furtune
Some buildings even give you the chance to get coins by tapping them every hour.
If you want to buy an object that costs more coins than you currently have, you can buy the missing coins with diamonds.