The objective of this study was to investigate the effect of pressure and/or temperature on the polymorphic transformation of famotidine from form B to form A by using a thermal confocal Raman microspectroscopy. A compact with a wide transparent zone in the center and an opaque zone surrounding it was prepared by compressing a conical mass of famotidine form B. Two unique Raman peaks at 2897 and 2920 cm −1 for famotidine forms B and A, respectively, were used as markers. The result indicates that the opaque zone in each compact was composed of famotidine from B, and it did not undergo any polymorphic transformation by preparing with higher compression pressure and/or by heating. The Raman peak intensity ratio of the 2920 cm −1 and 2897 cm −1 bands markedly increased starting from 120°C for the transparent zone prepared by compressing with 19.61 × 10 4 kPa pressure, but increased from 100°C with 49.03 × 10 4 kPa pressure, indicating the occurrence of thermally induced polymorphic transformation of famotidine from form B to form A. However, the transparent zone prepared by 9.81 × 10 4 kPa compression pressure retained the same Raman spectrum as that of the famotidine form B, revealing that the thermally induced polymorphic transformation of famotidine was dependent on the pressure applied. There was no polymorphic transformation of famotidine in the transparent zone when it was prepared by a higher compression pressure at a lower temperature or by a lower pressure at a higher temperature. The combined effect of compression and temperature was found to accelerate the polymorphic transformation from form B to form A in the transparent zone of famotidine.