Ghee is also referred to as clarified butter. In simple words, dairy butter is simmered until all water is boiled off and milk proteins separate. The high-fat content in ghee gives it long shelf life.
https://milkio.co.nz/can-i-eat-ghee-if-i-am-allergic-