In legal practice, foray was sanctioned by starosta officials, and was the fourth step in the execution of a legal ruling. After the guilty party refused to abandon the disputed property, starosta would call his supporters as well as opponents of the guilty party (therefore creating a temporary force of militia) and attempt to remove the guilty party from his manor.
Since the mid-17th century, forays were increasingly done without a legal sanction simply when a member of szlachta would gather his supporters and raid an estate of his opponent. They would become a common occurrence during the period of noble's anarchy in the Commonwealth.