Primary antibodies are typically produced by immunizing an animal, such as a mouse, rabbit, or goat, with an antigen. The animal's immune system generates antibodies against this antigen. These antibodies can then be collected and purified for use in histological studies. The specificity and affinity of a primary antibody depend on the quality of the antigen used for immunization and the conditions under which the antibody is produced.