The number of protons and electrons in an atom must be equal if the atom has no charge. This is because protons have a positive charge, while electrons have a negative charge. When the number of protons and electrons are equal, the positive and negative charges cancel each other out, resulting in an atom with no overall charge.