A warranty claim may be invalidated if you fail to maintain your vehicle according to its specified manufacturer service intervals.
In cases where you have been adjudged to have caused damage to the vehicle through neglect or poor driving, then you are responsible for any repairs – and will not be covered under any warranty.
And when it comes to carrying out those repairs, if you use non-original equipment manufacturer (OEM) parts, then it can also void the warranty.
Furthermore, if you have carried out any aftermarket modifications, then this will likely void your warranty agreement.