City of temples

Macao has more temples per square kilometre than any other city in Greater China, some dating back to the 13th century. What role do they play in the territory today and how are they being preserved by the government?