For two graphs S and T , the constrained Ramsey number f (S, T ) is the minimum n such that every edge coloring of the complete graph on n vertices (with any number of colors) has a monochromatic subgraph isomorphic to S or a rainbow subgraph isomorphic to T . Here, a subgraph is said to be rainbow if all of its edges have different colors. It is an immediate consequence of the Erdős-Rado Canonical Ramsey Theorem that f (S, T ) exists if and only if S is a star or T is acyclic. Much work has been done to determine the rate of growth of f (S, T ) for various types of parameters. When S and T are both trees having s and t edges respectively, Jamison, Jiang, and Ling showed that f (S, T ) ≤ O(st 2 ) and conjectured that it is always at most O(st). They also mentioned that one of the most interesting open special cases is when T is a path. In this paper, we study this case and show that f (S, P t ) = O(st log t), which differs only by a logarithmic factor from the conjecture. This substantially improves the previous bounds for most values of s and t.1 has a monochromatic subgraph isomorphic to S or a rainbow subgraph isomorphic to T . It is an immediate consequence of the Canonical Ramsey Theorem that this number exists if and only if S is a star or T is acyclic, because stars are the only graphs that admit a simultaneously lexical and monochromatic coloring, and forests are the only graphs that admit a simultaneously lexical and rainbow coloring.The constrained Ramsey number has been studied by many researchers [1,3,4,7,8,10,13,14,18], and the bipartite case in [2]. In the special case when H = K 1,k+1 is a star with k + 1 edges, colorings with no rainbow H have the property that every vertex is incident to edges of at most k different colors, and such colorings are called k-local. Hence f (S, K 1,k+1 ) corresponds precisely to the local k-Ramsey numbers, r k loc (S), which were introduced and studied by Gyárfás, Lehel, Schelp, and Tuza in [11]. These numbers were shown to be within a constant factor (depending only on k) of the classical k-colored Ramsey numbers r(S; k), by Truszczyński and Tuza [16].When S and T are both trees having s and t edges respectively, Jamison, Jiang, and Ling [13] conjectured that f (S, T ) = O(st), and provided a construction which showed that the conjecture, if true, is best possible up to a multiplicative constant. Here is a variant of such construction, which we present for the sake of completeness, which shows that in general the upper bound on f (S, T ) cannot be brought below (1 + o(1))st. For a prime power t let F t be the finite field with t elements. Consider the complete graph with vertex set equal to the affine plane F t × F t , and color each edge based on the slope of the line between the corresponding vertices in the affine plane. The number of different slopes (hence colors) is t + 1, so there is no rainbow graph with t + 2 edges. Also, monochromatic connected components are cliques of order t, corresponding to affine lines. Therefore if Ω(log t) < s < t, we can take a ra...