what is franchising?

what are the advantages of franchising (in general)?
who supervises franchises?
is there any legal requirements for buying franchise?