One type of pornography against the law in most countries is child pornography. When people consider photographs or movies to harm or to disrespect the people depicted or the viewers, or to violate the community's moral or religious standards, they condemn the material as 'obscene.' Most countries have laws against obscenity.
In the law of most countries, showing naked people is not called 'pornography' unless the people are doing something sexual even so, material that counts as pornographic may still be legal. When the purpose of these works is not arousal, but for example education, or art, these works are not called pornographic. Pornography (or porn) is the name for writing, pictures, and films which feature sex for the sole or primary purpose of arousing people sexually, either to help them masturbate, or to prepare them for sex with a partner.