Mudarabah is an Islamic contract where one party provides capital to another party for investing in a commercial enterprise. The capital provider is called rabb-ul-mal and the manager is called mudarib. Profits are shared according to a predetermined ratio, while losses are solely borne by the capital provider except in cases of misconduct or negligence by the mudarib. There are two main types of mudarabah - restricted and unrestricted. The contract can be terminated by either party with notice. Mudarabah is used by Islamic banks to accept deposits and invest funds on behalf of depositors based on profit and loss sharing. However, there are also risks involved for the banks in applying mudarabah.