The Matrix is an artificial reality which, after being destroyed, manifested itself in the mind of Alex. Nobody knows how this happened. He can, however, use the Matrix as a sort of long-term prison. If he enters the Matrix, a simple feat compared to what he has achieved in the past, he has complete control. It is effectively his own little planet where he plays God.
Advertisement