The melting point of a substance is affected by factors such as the strength of intermolecular forces, the size and shape of the molecules, and the presence of impurities. Substances with stronger intermolecular forces and larger, more complex molecules generally have higher melting points.