A resin composition for a printed wiring board, including: a phenolic compound (A); a maleimide compound (B); an epoxy compound (C); a cyclic carbodiimide compound (D); an inorganic filler (E); and a curing accelerator (F), wherein a content of the inorganic filler (E) is 100 to 250 parts by mass based on 100 parts by mass of a resin solid content.