Where is the thylakoid located in a cell?

Where is the thylakoid located in a cell?