He was treated in hospital for injuries to his arm, back and face after being bitten by the dogs in Buttershaw Drive, Bradford, at about 07.30 BST.
West Yorkshire Police said armed officers secured the dogs in a garden following reports of the attack.
Sgt Richard Sheard said two men have been questioned in connection with the incident.
He said both dogs were taken away by specialist officers along with a third dog, a red nosed pit bull.
A man suffered serious injuries when he was attacked in the street by two American pit bulls, police said.