Submariners face many environmental and operational challenges to maintaining good sleep, including suboptimal lighting, shift work, and frequent interruptions. Anecdotally, many Sailors consume caffeine to alleviate the effects of poor sleep on alertness, mood, and performance; however, caffeine itself may also degrade sleep quantity and/or quality. This study provides the first exploration of the potential relationship between caffeine use and sleep onboard submarines. Objective measures (wrist actigraphy, available from 45 participants), self-report sleep metrics, and self-reported caffeine consumption were collected from 58 US Navy Sailors before and during a routine submarine underway at sea lasting 30 days. Contrary to expectations, less caffeine was reportedly consumed at sea (232.8 ± 241.1 mg) than on land prior to the underway (M = 284.4 ± 251.7 mg; X2 (1) = 7.43, p = 0.006), positive rather than negative relationships were observed between caffeine consumption and sleep efficiency (F = 6.11, p = 0.02), and negative relationships were observed between caffeine consumption and wake after sleep onset (F = 9.36, p = 0.004) and sleep fragmentation (F = 24.73, p < 0.0001). However, in contrast, higher caffeine consumption was also negatively related to self-reported sleep duration while at sea (F = 4.73, p = 0.03). This observational study is the first to measure relationships between caffeine consumption and sleep quantity and/or quality in a submarine environment. We propose that the unique submarine environment and the unique caffeine consumption patterns of submariners should be considered in the development of potential countermeasures for sleepiness. Published 2023. This article is a U.S. Government work and is in the public domain in the USA. Journal of Sleep Research published by John Wiley & Sons Ltd on behalf of European Sleep Research Society.