11. Prior to entering the study, participants with UC must have had an endoscopy during screening to confirm active disease, with Mayo score of 6 to 12 and an endoscopic subscore greater than or equal to (>=)2. Participants with CD must have a Crohn's Disease Activity Index (CDAI) score of 220 to 450 to confirm moderate to severe disease on entry (that is, Day-1).