The particle に marks the location where something exists. For the list of words which are used to describe where something/somebody is(e.g., on; above; under; below; inside; outside), see the following chart.
はこの 中に りんごが あります。
There are apples inside the box.
へやの 外に アリさんが います。
Outside of the room is Ali.