Black fur in cats is caused by a dominant gene that produces melanin, the pigment responsible for skin, hair, and eye color. The gene is inherited from both parents, and more copies generally result in darker fur. Other genes and environmental factors such as diet and sunlight can also influence coat color.