Bun'ei (文永?) was a Japanese era name (年号,, nengō,?, lit. "year name") after Kōchō and before Kenji. This period spanned the years from February 1264 to April 1275. The reigning emperor was Kameyama-tennō (亀山天皇?).