# Why do atoms repel when they are very close to each other? [duplicate]

Why do atoms repel when they are very close to each other? I know that this is not because of electrostatic force, but I do not know why atoms actually repel? Our lecturer said that it arises from the constraints on the wavefunction of more than one fermion