Why do generic medicines cost less than brand ones?

Generic drugs cost less than brand-name drugs because companies who manufacture generic versions of drugs do not spend money on research, development and advertising which make up the major cost of production met by original manufacturers.