A galley is section located on a starship to provide facilities for preparation of food. On some starships, a chef operates the galley, preparing cuisine for the crew and guests. With the advent of replicator technology in the 24th century, use of a galley fell out of use on most Federation starships, with occasional exceptions.
The Enterprise NX-01 had a galley to supplement the use of protein resequencers with conventionally prepared food. Hoshi Sato discovered that this galley was protected by the Enterprise's Chef to the extent that it forced the cessation of her own cooking. (ENT: "Silent Enemy")
In 2371, in response to a need to ration replicator usage, Neelix established a galley on board the USS Voyager, by taking over the Captain's dining room. (VOY: "Phage") The USS Bellerophon was also apparently modified in this fashion. (DS9: "Inter Arma Enim Silent Leges")