The first several years of the country 's history were marred by a Communist insurgency , Indonesian confrontation with Malaysia , Philippine claims to Sabah , and Singapore 's secession from the Federation in 1965 .