A contract between a bank as guarantor and a beneficiary in which the bank agrees to repay a certain amount based on pre-specified conditions. An exception is a demand guarantee, where the bank agrees to pay on a simple written request from the beneficiary.