Compress or expand a gas adiabatically (no heat exchange). The temperature rises on compression and falls on expansion — this is why a bicycle pump gets warm and diesel engines ignite without a spark.