Hotels have lodging and restaurants and are based in cities and towns while motels are mostly for motorists who rent rooms with garages for parking and for just one night stay mostly.
A motel is a hotel designed for motorist. They are usually found off interstate exits and the rooms often have external doors that you can drive up to and park outside.