This document discusses the legality of contracts and agreements. It states that for a contract to be valid and enforceable, it must have both a lawful object and consideration. If the purpose or consideration of a contract involves performing an unlawful or illegal act, then the contract is void. Some specific situations where a contract would be considered unlawful and void include: if it requires doing something forbidden by law; if it would defeat the purpose of an existing law; if the purpose is fraudulent; if it would cause injury to a person or their property; if a court deems the purpose to be immoral; or if it is opposed to public policy. Various examples are provided to illustrate each of these situations where a contract would be considered invalid