Authority to regulate real estate

When state and federal rules governing the use of real estate conflict, which rules take precedence, and when can police powers be used to take property?