How did people make physical copies of photographs when the camera was first made?

in 1the 1800s, how did they "print" the picture so they could have the physical copy? did the camera print it like in polaroids?
thanks in advance!
8 answers 8