The two common options are a master link, or a pin. With a master link you take the two sides of the link and insert them through the chain ends, and with their pins nestled each into the opposing master link side. Then you pull hard u til they click.
With a pin you assemble the chain ends together and with a chain tool press the pin through, just far enough.
Did you lose some tiny pieces when you opened it?