Due to market volatilities, the buyer might incur a loss if the value of the security lowers. In such cases, the buyer might not settle the trade causing a loss to the seller and the broker. So, the margin is needed to ensure that the buyer honours his trade and pays the due amount when the trade is settled. Moreover, the margin also ensures that the buyer can pay for the trade when it is executed.