The closely related title compounds are comprised of three types of rings: thiazolidinone, nitrophenyl and cyclohexyl. In both structures, the rings are close to mutually perpendicular, with interplanar dihedral angles greater than 80° in each case.