A seven-year-old boy who was taken from his Perth school on Wednesday morning has been found safe.

Police had held grave concerns for the boy's safety, but confirmed he had been found safe and well just after 10:30pm.

"A 36-year-old man has been taken into custody and is assisting police with their inquiries," police said in a statement.