The nucleus of an atom is surrounded by a cloud of
electrons. These electrons are held in place by the
electromagnetic force between the positively charged protons in the nucleus and the negatively charged electrons. This force is what keeps the atom together.
Think of it like a tiny solar system: the nucleus is like the sun, and the electrons are like the planets orbiting around it, held in place by gravity. In the atom, the "gravity" is the electromagnetic force.