Magpies are birds of the Corvidae (crow) family. The black and white Eurasian magpie is widely considered one of the most intelligent animals in the world and one of only a few non-mammal species able to recognize itself in a mirror test. In addition to other members of the genus 'Pica', corvids considered as magpies are in the genera 'Cissa'.

According to some studies, magpies do not form the monophyletic group they are traditionally believed to be—a long tail has certainly elongated (or shortened) independently in multiple lineages of corvid birds. Among the traditional magpies, there appear to be two distinct lineages. One consists of 'Holarctic' species with black/white colouration and is probably closely related to crows and Eurasian jays. The other contains several species from South to East Asia with vivid colouration which is predominantly green or blue. The azure-winged magpie and the Iberian magpie, formerly thought to constitute a single species with a most peculiar distribution, have been shown to be two distinct species and classified as the genus 'Cyanopica'.

More Info: en.wikipedia.org