Also called: assigned, exercise
Assignment is when an option seller is required to follow through on the contract: deliver shares for a short call or buy shares for a short put.
Assignment happens when the buyer exercises. It usually happens at expiration on in-the-money options, but US stock options can be assigned early, often right before an ex-dividend date. Index options like SPX settle in cash instead of shares. If you sell options, plan what you will do if assigned, and make sure your account can handle 100 shares per contract.
You sold a $30 put. At expiration the stock is at $27, so you are assigned: $3,000 leaves your account and 100 shares arrive, now worth $2,700.
Related terms: Cash-secured put, Covered call, In the money (ITM), Expiration date