The morning after pill is a pill taken after unprotected sex to prevent pregnancy. It can be taken if you forget to use protection (such as a condom), or if your contraception fails. Both types of morning after pill (Levonorgestrel and ellaOne) work by stopping or delaying the release of an egg.