What is an apostille or legalization?

An apostille or legalization is a government certification used to verify the authenticity of an educational document when it will be used in another country.