Contradict means to say or write the opposite of something. (verb)
An example of contradict is for a teenager to say he was at the library last night at 8 p.m for four hours., but then to later mention that the movie he saw last night was great.
An example of contradict is to express a belief against a popular political opinion.