A frontier is a border between two regions or countries.
A fence was built along the frontier where the river curved.
Example picture