Any lessee of lands subject to a mineral lease, or the heirs, successors or assigns of such lessee, have a preferential right to renew the lease or to purchase or lease any estate in such lands that the state intends to sell, lease, or otherwise dispose of during the term of the mineral lease on the same terms and conditions as the state otherwise intends to lease, sell, or otherwise dispose of such estate. If the mineral lessee does not exercise such preferential right and the commissioner sells or leases any estate in such lands subject to a mineral lease, including an estate or lease for agricultural, meadow, pasturage, or other purposes, the rights of the purchaser or lessee of such estate are subordinate to the rights of the mineral lessee.
SDCL 5-7-48