Webb will primarily look at the Universe in the infrared, while Hubble studies it primarily at optical and ultraviolet wavelengths (though it has some infrared capability). Webb also has a much bigger mirror than Hubble.