A division bench comprising Chief Justice Shiv Kirti Singh and Justice Devendra Kumar Upadhaya gave this view in a case involving a PIL by a local lawyer.
The petitioner had sought directions for effective control over illegal mining in the state which, it was alleged, was going on openly despite a stay on it.
Appearing for the state government, additional advocate general Bulbul Godiyal told court that steps were being taken to provide valid mining licences, for which rules were being framed.
The next date for a hearing in the case has been fixed after four weeks.
UP has been in the news of late for alleged violations by the "mining mafia" in the state with the case of suspension of an IAS officer, Durga Sakthi Nagpal, bringing the matter into sharp focus nationally.
Although Nagpal, who was posted in Gautam Budh Nagar district, was suspended late last month for ordering demolition of a mosque wall, the move was widely perceived as being a punishment for her for having cracked down on illegal mining in her area.