While it's possible to visit Petra as a day trip from Amman, it's recommended to spend at least one night in Petra to fully explore the ancient city.