2-Phenyl-1H-indole-3-carbaldehyde-based barbituric acid, thiobarbituric acid, thiosemicarbazide, isoniazid, and malononitrile derivatives were synthesized under photochemical conditions. The antitumor activities of the synthesized compounds were evaluated on three different human cancer cell lines representing prostate cancer cell line DU145, Dwivedi (DWD) cancer cell lines, and breast cancer cell line MCF7. All the screened compounds possessed moderate anticancer activity, and out of all the screened compounds, 5-{1[2-(4-chloro-phenyl)2-oxo-ethyl]-2-phenyl-1H-indole-3-ylmethylene}-2-thioxo-dihydro-pyrimidine-4,6-dione (2b) and 5-{1[2-(4-methoxy-phenyl)2-oxo-ethyl]-2-phenyl-1H-indole-3-ylmethylene}-2-thioxo-dihydro-pyrimidine-4,6-dione (2d) exhibited marked antitumor activity against used cell lines. Additionally, barbituric acid derivatives were selective to inhibit cell line DWD and breast cancer cell lines.