When you reach the supply limit (90 food), you cannot build any more units. However, when you build Ancient Buildings, it eliminates 1 food, allowing you to build more units. When you cancel your Ancient Building, you will have your 1 food supply back, getting you over the supply limit.