We study quark and strange quark matter in the context of general relativity. For this purpose, we solve Einstein's field equations for quark and strange quark matter in spherical symmetric space-times. We analyze strange quark matter for the different equations of state (EOS) in the spherical symmetric space-times, thus we are able to obtain the space-time geometries of quark and strange quark matter. Also, we discuss the features of the obtained solutions. The obtained solutions are consistent with the results of Brookhaven Laboratory, i.e. the quark-gluon plasma has a vanishing shear (i.e. quark-gluon plasma is perfect).