Necessity and contingency are a pair of important categories in philosophy and logics.The paper makes an investigation of them and the definitions of necessary truth historically,analyses the relationship between necessity and contingency,necessary truth and contingent truth.