It can reorganize its cells to make itself into a duplicate of anything it sees. The quality of the duplicate depends on the individual.
DITTO rearranges its cell structure to transform itself into other shapes. However, if it tries to transform itself into something by relying on its memory, this POKéMON manages to get details wrong.