When a Fort is built, you can tap the Fort in Castle or on the map and then tap ‘Dispatch’ (P1 & P2). After selecting heroes and troops, troops are sent to the Fort.
The troops are stationed in the Fort to safeguard the Fort. They can also depart from the Fort to carry out tasks like attack or gathering.

(P1)
(P2)