Hangars, also known as docking bays or landing pads, were areas for launching, landing, repairing, and refueling vehicles. They were located on planetary surfaces, space stations, and starships large enough to carry smaller ships, such as shuttles, freighters, and starfighters. Some ships like Imperial Star Destroyers had a tractor beam that could catch rebel ships and pull them into their hangar bays.
Some starships were designed to carry shuttles, freighters and starfighters. For example the Venator-class star destroyer used by the galactic republic could contain numerous starships and shuttles within its hangars.