An agent for inducing production of megakaryocytes and/or platelets from pluripotent stem cells which is useful for treatment of disease accompanied by a decrease in platelets is provided.A method for producing megakaryocytes and/or platelets, comprising separating hematopoietic progenitor cells from the septal cells in sac-like structures produced by pluripotent stem cells, and culturing the hematopoietic progenitor cells ex vivo in the presence of a compound represented by the formula (I) (wherein R1 to R7, W, X, Y, Z, Ar1 and n are as defined in the description) to differentiate them into megakaryocytes and/or platelets.