As a noun, it is a formal agreement between two or more people that the law can enforce. As a verb, it means to make something smaller or tighter, or to catch a disease.
From Latin *contractus* 'a drawing together, an agreement', from *contrahere* 'to draw together, make a bargain'. The ideas of 'pulling together' and 'making an agreement' both come from this root.
Try Another Word