A compact approach to photonic-assisted ultrawideband (UWB) monocycle pulse generation is proposed and experimentally demonstrated based on the wavelength dependence of the half-wave voltage of a Mach-Zehnder modulator (MZM). By employing a single MZM with dual-wavelength injection at around 1310 and 1550 nm, a pair of polarity-reversed monocycle pulses with the full width at half-maximum of about 80 ps and the fractional bandwidth of greater than 160% can be generated. The experiment results agree well with the theoretical prediction. The simple setup and the convenience to control the monocycle pulse polarity are favorable for future applications.