Evolution of mitochondria and chloroplasts
The established scientific hypothesis is that the mitochondria and chloroplasts were originally independent organisms engulfed by the archaic cells. This way they have got the double membrane. The inner membrane got invaginations, which in case of chloroplasts detached from the inner membrane and are called tylakoids.
3D VRML world. You need VRML plugin to see it.