The Shack is one of the resident buildings in your Village from which you can collect rent.
The Shack unlocks at the beginning of the game. It will cost 20 to buy from the buidings tab in your store. You will need 6 Stone and 6 Wood to construct the building.